/*
 * Copyright (C) 2011 SHARP Corporation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jp.co.sharp.android.yourlocation.data;

public class Buddy {
	private int id;
	private String name;
	private String phoneNumber;
	private boolean isSyncRequest;
	private boolean isAutoResponse;
	private int locatingMode;

	public Buddy() {
	}

	public Buddy(int id) {
		setId(id);
	}

	public Buddy(int id, String phoneNumber) {
		setId(id);
		setPhoneNumber(phoneNumber);
	}

	public Buddy(int id, String phoneNumber, String name) {
		setId(id);
		setPhoneNumber(phoneNumber);
		setName(name);
	}

	public Buddy(int id, String phoneNumber, String name, int isSyncRequest,
			int isAutoResponse, int locatingMode) {
		this(id, phoneNumber, name, isSyncRequest != 0, isAutoResponse != 0, locatingMode);
	}

	public Buddy(int id, String phoneNumber, String name,
			boolean isSyncRequest, boolean isAutoResponse, int locatingMode) {
		setId(id);
		setPhoneNumber(phoneNumber);
		setName(name);
		setSyncRequest(isSyncRequest);
		setAutoResponse(isAutoResponse);
		setLocatingMode(locatingMode);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public boolean isSyncRequest() {
		return isSyncRequest;
	}

	public void setSyncRequest(boolean isSyncRequest) {
		this.isSyncRequest = isSyncRequest;
	}

	public boolean isAutoResponse() {
		return isAutoResponse;
	}

	public void setAutoResponse(boolean isAutoResponse) {
		this.isAutoResponse = isAutoResponse;
	}

	public int getLocatinogMode() {
		return locatingMode;
	}
	public void setLocatingMode(int locatingMode) {
		this.locatingMode = locatingMode;
	}
}
